# 中国制造-所有分类
import requests
from bs4 import BeautifulSoup
from madeInChina import catlist

newsurl = 'https://www.made-in-china.com/multi-search/prod/catlist/index/B.html'
res = requests.get(newsurl)
html_content = res.text
# 解析
soup = BeautifulSoup(html_content, 'html.parser')
# 取body
cat_more = soup.select('.cat-more')
for more in cat_more:
    # 更多分类链接
    href = more.get('href')
    catlist.findcatlist('https:'+href)
    print('===================================================================================================')
